﻿/****************************************************************************
* Copyright (c) 2018Microsoft All Rights Reserved.
* CLR版本： 4.0.30319.42000
*机器名称：SHOUZHEN
*公司名称：Microsoft
*命名空间：MSD.WL.Site.Models
*文件名：  Employee
*版本号：  V1.0.0.0
*唯一标识：30da6425-1733-4b45-9c67-1fcf4a97c248
*当前的用户域：SHOUZHEN
*创建人：  Administrator
*电子邮箱：gsz8865784@126.com
*创建时间：2018/12/24 20:27:55

*描述：
*
*=====================================================================
*修改标记
*修改时间：2018/12/24 20:27:55
*修改人： Administrator
*版本号： V1.0.0.0
*描述：
*
*****************************************************************************/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;

namespace MSD.WL.Site.Models
{
    public class Employee
    {
        public int ID { get; set; }

        [Display(Name = "员工代码")]
        [StringLength(10)]
        public string EmployeeCode { get; set; }

        [Display(Name = "员工名称")]
        [StringLength(10)]
        public string EmployeeName { get; set; }

        [Display(Name = "部门代码")]
        [StringLength(10)]
        public string DepartmentCode { get; set; }

        [Display(Name = "年龄")]
        [Range(0,120)]
        public int Age { get; set; }

        [Display(Name = "性别")]
        [Range(0,1)]
        public int Sex { get; set; }

        [Display(Name = "教育水平")]
        [Range(1,6)]
        public int EduLevel { get; set; }

        [Display(Name = "工作")]
        [StringLength(20)]
        public string Job { get; set; }

        [Display(Name = "入职时间")]
        public DateTime JoinDate { get; set; }

        [Display(Name = "联系方式")]
        [StringLength(13)]
        public string TelephoneCode { get; set; }

        [Display(Name = "备注")]
        [StringLength(500)]
        public string Remark { get; set; }
    }
}